<?php

namespace app\modules\admin\models;

use Yii;

/**
 * This is the model class for table "cw_tpl".
 *
 * @property integer $tpl_id
 * @property string $tpl_name
 */
class CwTpl extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cw_tpl';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['tpl_name'], 'required'],
            [['tpl_name'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'tpl_id' => 'Tpl ID',
            'tpl_name' => 'Tpl Name',
        ];
    }
}
